-This file is part of the ImageMapper distribution v1.2
The latest release of ImageMapper (v1.2+) has a new feature that lets you state exactly how you would like the map generated.
Any map files you create that are stored in the same folder as the application, or any subfolders within that folder are auto-listed in the compile dialog. It is recommended that you use the 'Map Formats' folder, but you can put your formats anywhere, and use the 'Load…' command to locate them at compile time.
An extremely simple language has been devised to handle this, which can be viewed by opening either of the two supplied formats (NCSA or CERN) in this folder as text files in a program like BBEdit:
The file is subdivided into 5 discrete sections, anything outside of a section is ignored, and treated as a comment.
The sections are enclosed in html-like tags ie: <TAG> stuff </TAG>. The tags must be capitals, and not embedded within other tags.
Currently supported tags are:
HEADER - usually comment text to be output at the start of the file, but can be
anything.
RECT - decribes how to output each rectangle object. Combination of
straight text to be copied and variables.
Wherever the compiler encounters a $xxxx, it replaces it with the
appropriate value/text.
Variables:
$x0 - left x coordinate of boundary rectangle
$y0 - top y coordinate of boundary rectangle
$x1 - right x coordinate of boundary rectangle
$y1 - bottom y coordinate of boundary rectangle
$xc - x-coordinate of center of boundary rectangle
$yc - y-coordinate of center of boundary rectangle
$radius - distance from xc to x0, or from yc to y0 (assumes circle/square)
$url - target of object
CIRCLE - similar to rectangle section, same variables apply.
POLYGON - similar to the last two sections, except there is a variable number of
points, so three new variables are introduced:
Variables:
$xn - x-coordinate of nth point
$yn - y-coordinate of nth point
… - repeats following $xn, $yn combination until no more points can be found.
(*** NOTE: it is the single character obtained by typing <option> ‘:’, and
not three individual full stops. ***)
FOOTNOTE - exactly the same as header section, but appears at end of file, after all
shapes have been written.
NOTE:
Direct manipulation of these files can be desirable, but is not essential! There is an editor feature built into the program which makes it a lot simpler. You will still need to know the variable names though.
If you do decide to edit the files, or even create new ones, the file type is 'GmAp', and the creator is 'WidT'. If the file type is not right, they won't show up in the dialog.